import 'package:flutter/cupertino.dart';

import '../data/role_data.dart';
import '../resource/r.dart';

class RoleDataProvider extends ChangeNotifier{
  List<RoleData> dataList = [];
  Future<void> requestData() async {
    Future.delayed(Duration(seconds: 2));
    dataList
      ..add(RoleData(R.a_wu_child, R.ba_da, R.tian_shi))
      ..add(RoleData(R.cheng_hu_zhang, R.ge_ma, R.zu_do_mon))
      ..add(RoleData(R.su_na_child, R.bi_qiu, R.jia_lou_da))
      ..add(RoleData(R.tai_yi, R.ya_gu, R.ji_xie_bao_long))
      ..add(RoleData(R.da_he, R.jia_bu, R.shou_ren_jia_lu_lu))
      ..add(RoleData(R.guang_zi_lang, R.jia_chong, R.chao_bi_duo))
      ..add(RoleData(R.mei_mei, R.ba_lu, R.hua_xian))
      ..add(RoleData(R.jia_er, R.di_lu, R.tian_nv));
  }
}